package vn.nnn.shogi.board;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;

public class PrivateChatLayout {
	
	private static final int WIDTH = 51 * 4;
	private static final int CHAT_TITLE_HEIGHT = 20;
	private static final int LIST_USER_HEIGHT = 100;
	private static final int CHAT_CONTENT_HEIGHT = 150;
	private static final int CHAT_INPUT_HEIGHT = 25;
	
	Rectangle titleBound;
	Rectangle listUserBound;
	Rectangle chatContentBound;
	Rectangle chatInputBound;
	
	public PrivateChatLayout( Point offset ) {
			
		// title
		Point point = offset;
		Dimension size = new Dimension( WIDTH, CHAT_TITLE_HEIGHT );		
		titleBound = new Rectangle( point, size );
		
		// list user
		point = new Point( point.x, point.y + CHAT_TITLE_HEIGHT );
		size = new Dimension( WIDTH, LIST_USER_HEIGHT );
		listUserBound = new Rectangle( point, size );
		
		// chat content
		point = new Point( point.x, point.y + LIST_USER_HEIGHT );
		size = new Dimension( WIDTH, CHAT_CONTENT_HEIGHT );
		chatContentBound = new Rectangle( point, size );
		
		// chat input
		point = new Point( point.x, point.y + CHAT_CONTENT_HEIGHT );
		size = new Dimension( WIDTH, CHAT_INPUT_HEIGHT );
		chatInputBound = new Rectangle( point, size );
	}

	public Rectangle getTitleBound() {
		return titleBound;
	}

	public Rectangle getListUserBound() {
		return listUserBound;
	}

	public Rectangle getChatContentBound() {
		return chatContentBound;
	}

	public Rectangle getChatInputBound() {
		return chatInputBound;
	}
}
